package com.wkhyapp.lm.utils;


import com.wkhyapp.lm.http.vo.Member;

/**
 * Created by Administrator on 2019-5-16.
 */

public class MemberUtils {

    private  static Member mMember;

    public static boolean isLogin(){
        if(PreferenceUtils.getInstance().getPrefInt("userId",0)<=0){
            return  false;
        }else{
            return  true;
        }
    }

    public static int getUid(){
        return  PreferenceUtils.getInstance().getPrefInt("userId",0);
    }


    public static void saveMember(Member member){
        mMember = member;
    }


    public static Member getMember(){
        return mMember;
    }




}
